<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['title']}{/if}{$SEO['site_title']}</title>
<meta name="keywords" content="{$SEO['keyword']}">
<meta name="description" content="{$SEO['description']}">
<link href="css/bootstrap.min.css" type=text/css rel=stylesheet>
<link href="css/reset.css" type=text/css rel=stylesheet>
<link href="css/page.css" type=text/css rel=stylesheet>
<script src="js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="fancyBox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="fancyBox/source/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="fancyBox/source/jquery.fancybox.css?v=2.1.5" media="screen" />
</head>
<body>
{template "content","header"}

 <div class="page-ppt">
 {if $CATEGORYS[$top_parentid][image]}
 <img src="{$CATEGORYS[$top_parentid][image]}" />
 {else}
  <img src="images/ppt.jpg" />
 {/if}
 </div>
 
 <div class="base">
	<div class="row-fluid">
	{template "content","left"}
	
	<div class="page-right">
		<section class="n_title">
             <h1>{$catname}</h1>
            <div class="position">
                <strong>当前位置：</strong> <a href="/" title="">首页</a> &gt; {catpos($catid)}            </div>
        </section>
		<ul class="piclist">
		{pc:content  action="lists" catid="$catid"  order="listorder ASC,updatetime desc"   num="12" page="$page"}
             {loop $data $val}
			<li {if $n%3==0}class="last"{/if}>
					<a href="{$val[thumb]}" class="aimg"  data-fancybox-group="gallery"><img alt="{$val[title]}" src="{$val[thumb]}" /></a>
			</li>
			{/loop}
{/pc}
		</ul>
		
		
		<div class="pages">{$pages}</div>
		
	</div>
	
	
	
	
	</div>
 </div>


{template "content","footer"}

<script type="text/javascript">
		$(document).ready(function() {
			$('.aimg').fancybox();
		});
		
</script>
</body>
</html>
